{% extends "base.html" %}

{% block content %}

    <ul>
       <h1>Hello,{{ current_user.username }}!</h1>
		<form action="" method="post">
		{{ form.hidden_tag() }}
        <p>
			{{ form.post.label }}<br>
			{{ form.post(cols=32, rows=4) }}<br>
			{% for error in form.post.errors %}
				<span style="color:red;">[{{ error }}]</span>
			{% endfor %}
		</p>
		<p>{{ form.submit() }}</p>
	{% for post in posts %}
        {% include '_post.html' %}
	{% endfor %}
    </ul>
{% endblock %}
